package top.anydata.lifeofcode.lifesystem.dto.sys.user;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * 功能描述:
 *
 * @author <a href="mailto:caingao@anydata.top">CainGao</a>
 * @version V_1.0
 * @date 2024/1/30 5:53 PM
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SysAuthUserDto implements java.io.Serializable {
    private Integer id;
    private String username;
    private String nickname;
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;
    private String countryCode;
    private String regionCode;
    private Byte gender;
    private Date birthDate;
    private String email;
    private String phoneNumber;
    private String avatarUrl;
    private Byte isBan;
    private Set<SysAuthRoleDto> roles;
    private Set<SysAuthPermissionDto> permissions= new HashSet<>();

}
